<template>
  <div class="loading-map">
    <div class="sp sp-wave" style="margin-top: 160px"></div>
    <h5 class="loading-info">加载中</h5>
  </div>
</template>

<script>
export default {
  name: "WaveMapLoading",
}
</script >

<style lang="less">

.loading-map {
  padding: 10px;
  border-radius: 4px;
  height: 470px;
  min-width: 125px;
  background-color: var(--loading-color);
  margin: 0 260px 10px 0;
  width: 780px;
  /*top: 30%;*/
  z-index: 9999;

  .sp {
    width: 32px;
    height: 32px;
    clear: both;
    margin: 20px auto;
  }

  /* Spinner Wave */
  .sp-wave {
    border-radius: 50%;
    position: relative;
    opacity: 1;
  }

  .sp-wave:before, .sp-wave:after {
    content: "";
    border: 1px #000 solid;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
  }

  .sp-wave:before {
    transform: scale(1, 1);
    opacity: 1;
    -webkit-animation: spWaveBe 0.6s infinite linear;
    animation: spWaveBe 0.6s infinite linear;
  }

  .sp-wave:after {
    transform: scale(0, 0);
    opacity: 0;
    -webkit-animation: spWaveAf 0.6s infinite linear;
    animation: spWaveAf 0.6s infinite linear;
  }
}





@-webkit-keyframes spWaveAf {
  from {
    -webkit-transform: scale(0.5, 0.5);
    opacity: 0;
  }
  to {
    -webkit-transform: scale(1, 1);
    opacity: 1;
  }
}

@keyframes spWaveAf {
  from {
    transform: scale(0.5, 0.5);
    opacity: 0;
  }
  to {
    transform: scale(1, 1);
    opacity: 1;
  }
}

@-webkit-keyframes spWaveBe {
  from {
    -webkit-transform: scale(1, 1);
    opacity: 1;
  }
  to {
    -webkit-transform: scale(1.5, 1.5);
    opacity: 0;
  }
}

@keyframes spWaveBe {
  from {
    -webkit-transform: scale(1, 1);
    opacity: 1;
  }
  to {
    -webkit-transform: scale(1.5, 1.5);
    opacity: 0;
  }
}

.loading-info {
  color: black;
}
</style>